@charset "utf-8";
/**
 * Created by kroyo on 2017/10/20.
 * index.html   首页样式
 */

@import 'common/mixincommon';



@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}



//主页标题
.home-title{
    font-size: 35px;
    color: $s3;
    line-height: 36px;
    font-weight: normal;
    text-align: center;
}
.bottom-border{
    position: relative;
    display: inline-block;
    padding: 30px 0;
    &:after{
        position: absolute;
        left: 50%;
        bottom: -4px;
        transform: translateX(-50%);
        display: block;
        content: '';
        width: 50%;
        height: 4px;
        background-color: $acolor; 
    }
}


.home-main{
    width: 100%;
    min-width: 1200px;
}


.site-banner{
    height: 400px;
}



//发布需求
.home-pdemand{
    position: relative;
    background-color: $sf;
}
.pdemand-view{
    position: relative;
    top: -50px;
    width: 706px;
    background-color: $sf;
    box-shadow: 0px 2px 22px 2px 
        rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 4px 4px;
    border-top: 4px solid $acolor;
    margin: 0 auto;
    padding: 0 44px 30px;
    z-index: 2;
    .home-title{
        padding: 26px 0;
    }
    .border{
        position: relative;
        height: 40px;
        background-color: $sf;
        border-radius: 2px;
        border: solid 1px $borcolor;
        &>input{
            width: 100%;
            height: 100%;
            color: $s3;
            font-size: 14px;
            padding: 0 10px;
            @include inputplace($sc);
        }
    }
    .tink{
        left: 10px;
        font-size: 14px;
    }
    .demand-link{
        font-size: 0;
        margin-top: 20px;
    }
    .demand-linkman{
        display: inline-block;
        width: 270px;
    }
    .demand-linkphone{
        display: inline-block;
        width: 160px;
        margin: 0 10px;
    }
    .demand-code{
        display: inline-block;
        width: 168px;
        input{
            width: 85px;    
        }
        .send-code-btn{
            position: relative;
            display: inline-block;
            width: 70px;
            color: $s6;
            font-size: 14px;
            cursor: pointer;
            text-align: center;
            transition: all .4s;
            &:hover{
                color: $acolor;
            }
            &:before{
                position: absolute;
                top: 0;
                left: -10px;
                display: block;
                content: '';
                width: 1px;
                height: 22px;
                background-color: $borcolor;
            }
        }
        &.disabled{
            border-color: $borcolor !important;
            cursor: default !important;
            input{
                background-color: transparent;
            }
            .send-code-btn{
                cursor: default;
                &:hover{
                    color: $s6;
                }
            }
        }
    }
    .demand-mode{
        position: relative;
        width: 100%;
        height: 46px;
        line-height: 44px;
        margin-top: 20px;
        //旧的样式
        .mode{
            position: relative;
            width: 100%;
            height: 100%;
            &:after{
                position: absolute;
                right: 0;
                bottom: -12px;
                display: block;
                width: 18px;
                height: 12px;
                content: '';
                background: url(../img/indexv2/pdemand-down.png) no-repeat center;
            }
            &>div{
                color: $s3;
                font-size: 16px;
                &:before{
                    display: inline-block;
                    content: '';
                    width: 24px;
                    height: 26px;
                    margin-right: 10px;
                    background: url(../img/index/icon-list2.png) no-repeat center;
                    vertical-align: -8px;
                }
            }
            .nohas{
                color: $sc;
            }
        }
        .new-mode{
            border-top: 1px solid #fea733;
            border-bottom: 1px solid #FEA733;
            margin: 0 auto;
            text-align: center;
            &>div{
                display: inline-block;
                &:before{
                    width: 20px;
                    background-image: url(../img/index/icon-list.png);
                    vertical-align: -3px;
                }
                &:first-of-type{
                    float: left;
                }
                &:last-of-type{
                    float: right;
                }
                &:nth-of-type{
                    overflow: hidden;
                }
            }
            &:after{
                right: 160px;
                border-top-color: #fea733;
            }
            &>div:first-child:before{
//              background-position:0 0;
                width: 16px;
                height: 20px;
                background-image: url(../img/indexv2/icon-demand1.png);
            }
            &>div:nth-child(2):before{
                width: 19px;
                height: 19px;
                background-image: url(../img/indexv2/icon-demand2.png);
//              background-position:0 -27px;
            }
            &>div:last-child:before{
                width: 23px;
                height: 20px;
                background-image: url(../img/indexv2/icon-demand3.png);
//              background-position:0 -54px;
            }
        }
    }    
    .pdemand-btnlist{
        width: 100%;
        font-size: 0;
        margin-top: 30px;
        text-align: center;
        .pbtn{
            display: inline-block;
            width: 200px;
            height: 50px;
            line-height: 50px;
            @include borradius(4px);
            font-size: 15px;
            margin: 0 40px;
            cursor: pointer;
            text-align: center;
            vertical-align: middle;
            @include transitions(.4s);
            i{
                font-size: 18px;
                font-weight: bold;
            }
        }
        .pdemand-mode-first{
            line-height: 48px;
            color: $acolor;
            border: 1px solid $acolor;
            &:hover{
                color: $sf;
                background-color:$acolor;
            }
        }
        .pdemand-mode-second{
            position: relative;
            color: #fff;
            background-color: #fea733;
            overflow: hidden;
            &:after{
                position: absolute;
                top: 0;
                left: 0;
                display: block;
                content: '';
                width: 100%;
                height: 100%;
                background-color: rgba(255,255,255,0);
                @include transitions(.4s);
            }
            &:before{
                position: absolute;
                top: -1px;
                right: -1px;
                display: block;
                content: '';
                width: 51px;
                height: 51px;
                background: url(../img/index/icon-tink.png) no-repeat center;
            }
            &:hover:after{
                background-color: rgba(255,255,255,.3);
            }
        }
    }
}
.pdemand-flow{
    width: 100%;
    height: 160px;
    text-align: center;
    margin-top: 25px;
    padding-bottom: 100px;
    white-space: nowrap;
    padding: 0 40px;
    overflow: hidden;
    .flow-wrapper{
        display: block;
        overflow: hidden;
    }
    .flow-item{
        position: relative;
        display: inline-block;
        width: 140px;
        height: 60px;
        background-color: $f2;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
        margin: 0 40px;
        vertical-align: middle;
        text-align: center;
        &:after{
            position: absolute;
            top: 0;
            right: -25px;
            display: block;
            content: '';
            border-top: 30px solid transparent;
            border-bottom: 30px solid transparent;
            border-left: 25px solid $f2;
        }
        &:before{
            position: absolute;
            top: 29px;
            left: -61px;
            display: block;
            content: '';
            width: 40px;
            height: 2px;
            background-color: $f2;
        }
        &:first-of-type:before{
            display: none;
        }
    }
    .flow-num{
        position: absolute;
        top: 9px;
        left: -21px;
        width: 42px;
        height: 42px;
        line-height: 34px;
        color: $sf;
        font-size: 18px;
        background-color: $acolor;
        border: solid 4px $f2;
        border-radius: 50%;
        overflow: hidden;
        text-align: center;
    }
    .flow-text-wrapper{
        display: table;
        width: 100%;
        height: 100%;
    }
    .flow-text{
        display: table-cell;
        color: $s6;
        font-size: 16px;
        padding-left: 4px;
        text-align: center;
        vertical-align: middle;
    }
}





.home-servicelist{
    position: relative;
    width: 100%;
    height: 600px;
    padding-top: 30px;
    background: url(../img/indexv2/bg-servicelist.jpg) no-repeat center;
    background-size: cover;
    &:before{
        position: absolute;
        top: 0;
        left: 0;
        display: none;
        content: '';
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: .7;
    }
    .container{
        position: relative;
        width: 1320px;
    }
    .home-title{
        color: $sf;
    }
    .btn-wrapper{
        text-align: center;
        .btn{
            display: inline-block;
            width: 300px;
            height: 50px;
            line-height: 48px;
            color: $acolor;
            font-size: $font16;
            border-radius: 25px;
            border: solid 1px $acolor;
            text-align: center;
            transition: all .4s;
            &:hover{
                color: $sf;
                background-color: $acolor;
            }
        }
    }
    .service-list{
        font-size: 0;
        margin-top: 60px;
        margin-bottom: 80px;
        .list-item{
            position: relative;
            display: inline-block;
            width: 324px;
            height: 200px;
            background-color: #ffffff;
            margin-right: 8px;
            cursor: pointer;
            &:last-of-type{
                margin-right: 0;
            }
            &:hover{
                .item-infor{
                    visibility: visible;
                    transform: scale(1);
                }
            }
        }
        .item-img{
            width: 100%;
            height: 100%;
            line-height: 200px;
            font-size: 0;
            background-color: #ffffff;
            vertical-align: middle;
            text-align: center;
            overflow: hidden;
            img{
                max-width: 100%;
                max-height: 100%;
                vertical-align: middle;
            }
        }
    }
    .item-infor{
        position: absolute;
        top: -20px;
        left: -41px;
        width: 406px;
        height: 240px;
        padding: 20px 30px;
        background-color: $sf;
        box-shadow: 0px 2px 48px 2px 
            rgba(0, 0, 0, 0.1);
        text-align: center;
        transform: scale(0);
        transition: all .8s;
        visibility: hidden;
        .infor-name{
            color: $s3;
            font-size: $font24;
            line-height: 26px;
            padding-top: 15px;
        }
        .infor-title{
            color: $s6;
            font-size: $font14;
            line-height: 16px;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        .infor-award{
            font-size: 0;
            .award{
                display: inline-block;
                margin: 0 5px;
            }   
            .award-img{
                width: 32px;
                height: 32px;
                border-radius: 50%;
                overflow: hidden;
                text-align: center;
                margin-bottom: 10px;
            }
            img{
                width: 100%;
                vertical-align: middle;
            }
            .award-num{
                color: $s9;
                font-size: 13px;
                line-height: 15px;
            }
        }
        .infor-cate{
            font-size: 0;
            margin-top: 25px;
        }
        .cate{
            display: inline-block;
            width: auto;
            height: 30px;
            line-height: 28px;
            color: $s9;
            font-size: 14px;
            padding: 0 10px;
            margin: 0 4px;
            border: 1px solid $borcolor;
            border-radius: 4px;
        }
    }
}



//成功案列
.home-caselist{
    width: 100%;
    padding-top: 30px;
    padding-bottom: 100px;
    background-color: $sf;
    .home-title{
        margin-bottom: 55px;
    }
    .case-item{
        position: relative;
        width: 100%;
        height: 200px;
        padding: 10px;
        margin-bottom: 20px;
        background-color: $sf;
        border: solid 1px $borcolor;
        transition: all .4s;
        cursor: auto;
        &:hover{
            border-color: $sf;
            box-shadow: 0px 2px 22px 2px  rgba(0, 0, 0, 0.1);
            // box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
//          transform: translate3d(0,-2px,0);
            img{
                transform: scale(1.1);
            }
//          h4 a{
//              color: $acolor;
//          }
        }
        &:after{
            position: absolute;
            top: 0;
            right: -16px;
            width: 100px;
            height: 90px;
            display: block;
            content: '';
            background-repeat: no-repeat;
            background-size: 100%;
        }
    }
    .mode-first:after{
        background-image: url(../img/indexv2/case-mode1.png);
    }
    .mode-second:after{
        background-image: url(../img/indexv2/case-mode2.png);
    }
    .mode-third:after{
        background-image: url(../img/indexv2/case-mode3.png);
    }
    .mode-fourth:after{
        background-image: url(../img/indexv2/case-mode4.png);
    }
    .item-left{
        float: left;
        width: 370px;
        height: 100%;
        background-color: $borcolor;
        overflow: hidden;
        a{
            width: 100%;
            height: 100%;
        }
        img{
            width: 100%;
            max-width: 100%;
            height: 100%;
            max-height: 100%;
            transition: all .4s;
        }
    }
    .item-right{
        float: left;
        width: 700px;
        padding-left: 30px;
        h4{
            color: $s3;
            font-size: $font18;
            font-weight: normal;
            line-height: 42px;
            margin-bottom: 15px;
            a{
                color: $s3;
                transition: all .4s;
//              &:hover{
//                  color: $acolor;
//              }
            }
        }
        p{
            position: relative;
            color: $s9;
            font-size: 14px;
            line-height: 24px;
            padding-left: 40px;
            &:before{
                position: absolute;
                top: -6px;
                left: 0;
                display: inline-block;
                content: '';
                width: 29px;
                height: 26px;
                background: url(../img/indexv2/icon-quto.png) no-repeat center;
            }
        }
        .case-btn {
            position: absolute;
            right: 15px;
            bottom: 15px;
            display: block;
            width: 100px;
            height: 30px;
            line-height: 30px;
            color: $sf;
            font-size: 16px;
            background-color: $borcolor;
            border-radius: 15px;
            text-align: center;
            cursor: pointer;
            transition: all .4s;
            &:hover{
                background-color: $acolor;
            }
        }
    }
    .item-mode{
        display: none;
        position: absolute;
        top: -22px;
        left: -22px;
        width: 1244px;
        height: 244px;
        background-color: $sf;
        box-shadow: 0px 2px 28px 1px 
            rgba(0, 0, 0, 0.12);
        z-index: 1;
        cursor:auto;
    }
    .mode-left{
        float: left;
        width: 266px;
        height: 244px;
        color: $sf;
        padding-top: 45px;
        background-color: $yelow;
        text-align: center;
        h3{
            font-size: $font24;
        }
        .state{
            font-size: 16px;
        }
        .price{
            line-height: 30px;
            font-size: 30px;
            font-weight: bold;
            margin-top: 25px;
            margin-bottom: 20px;
        }
        .type{
            display: inline-block;
            width: 128px;
            height: 30px;
            line-height: 30px;
            color: $yelow;
            background-color: $sf;
            border-radius: 4px;
            text-align: center;
        }
    }
    .mode-right{
        float: left;
        display: table;
        width: 978px;
        height: 100%;
        padding: 30px 50px 30px 30px;
        font-size: 0;
        .right-title{
            color: $s6;
            font-size: 18px;
        }
        .right-end{
            height: 20px;
            line-height: 20px;
            color: $s6;
            font-size: $font14;
            &:before{
                display: inline-block;
                content: '';
                width: 18px;
                height: 20px;
                margin-right: 10px;
                background: url(../img/indexv2/icon-mode.png) no-repeat center;
                vertical-align: -5px;
            }
        }
        .type{
            color: $yelow;
        }
        .right-list{
            font-size: 0;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        .left-text{
            position: relative;
            display: table-cell;
            width: 660px;
            height: auto;
            box-sizing: content-box;
            border-right: 1px solid $borcolor;
            vertical-align: middle;
            &:after{
                position: absolute;
                top: 0;
                right: 0;
                display: block;
                content: '';
                width: 1px;
                height: 100%;
//              border-left: 1px solid $borcolor;
            }
        }
        .model{
            display: inline-block;
            width: auto;
            height: 30px;
            line-height: 28px;
            color: $s9;
            font-size: 14px;
            border-radius: 4px;
            border: solid 1px $borcolor;
            padding: 0 10px;
            margin-bottom: 10px;
            margin-right: 10px;
        }
        .right-btn{
            display: table-cell;
            width: 238px;
            height: auto;
            text-align: right;
            padding-right: 3px;
            vertical-align: middle;
            .btn{
                display: inline-block;
                width: 180px;
                height: 50px;
                line-height: 48px;
                color: $yelow;
                font-size: 18px;
                border-radius: 25px;
                border: solid 1px $yelow;
                text-align: center;
                transition: all .4s;
                cursor: pointer;
                &:hover{
                    color: $sf;
                    background-color: $yelow;
                }
            }
        }
    }
    .item-mode.blue{
        .mode-left{
            background-color: $acolor;
        }
        .type{
            color: $acolor;
        }
        .btn{
            color: $acolor;
            border-color: $acolor;
            &:hover{
                color: $sf;
                background-color: $acolor;
            }
        }
    }
}




// 热门看点
.home-hotlist{
    position: relative;
    width: 100%;
    height: 640px;
    padding: 30px 0 100px;
    background: url(../img/indexv2/bg-hotlist.jpg) no-repeat top fixed;
    background-size: cover;
    &:before{
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        content: '';
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: .7;
    }
    .container{
        position: relative;
    }
    .home-title{
        color: $sf;
    }
    .more-wrapper{
        width: 100%;
        text-align: right;
        margin-top: 15px;
        margin-bottom: 60px;
    }
    .hot-morebtn{
        color: $s9;
        font-size: 16px;
        vertical-align: middle;
        transition: all .4s;
        cursor: pointer;
        &:after{
            display: inline-block;
            content: '';
            width: 14px;
            height: 14px;
            background: url(../img/indexv2/icon-more.png) no-repeat center;
            vertical-align: -1px;
            margin-left: 5px;
            transition: all .4s;
        }
        &:hover{
            color: $acolor;
            &:after{
                background-image: url(../img/indexv2/icon-more-active.png);
            }
        }
    }
    .hot-left{
        float: left;
        height: 325px;
        padding: 20px;
        a{
            display: block;
            width: 100%;
            height: 100%;
            &:hover{
                .hot-title{
                    color: $acolor;
                    border-width: 2px;
                }
                .hot-text{
                    border-color: $acolor;
                    &:before{
                        background-color: $acolor;
                    }
                }
                img{
                    transform: scale(1.1);
                }
            }
        }
        .img-wrapper{
            width: 510px;
            height: 220px;
            text-align: center;
            overflow: hidden;
        }
        img{
            width: 100%;
            height: 100%;
            vertical-align: middle;
            transition: all .4s;
        }
    }
    .hot-right{
        float: right;
        width: 616px;
        .hot-text{
            display: block;
            height: 81px;
            padding-top: 16px;
//          border-top: 2px solid transparent;
//          border-left: 2px solid transparent;
//          border-right: 2px solid transparent;
            &:before{
                top: 24px;
            }
        }
        a{
            cursor: pointer;
            &:hover{
                border-width: 2px;
                border-color: $acolor;
                .hot-title{
                    color: $acolor;
                }
                &:before{
                    background-color: $acolor;
                }
            }
        }
    }
    .hot-text{
        position: relative;
        padding: 20px 0 15px 25px;
        border-bottom: 1px solid $borcolor;
        transition: all .4s;
        &:before{
            position: absolute;
            top: 28px;  
            left: 0;
            display: block;
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #c1c1c1;
        }
    }
    .hot-title{
        width: 100%;
        color: $sf;
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 12px;
        @include textoverflow;
        transition: all .4s;
        a{
            color: $sf;
            transition: all .4s;
        }
        &:hover{
            a{
                color: $acolor;
            }
        }
    }
    .hot-time{
        color: $borcolor;
        font-size: 12px;
    }
    .hot-left.active{
        .hot-text{
            color: $acolor;
            border-color: $acolor;
            a{
                color: $acolor;
            }
        }
    }
    .hot-right .hot-text.active{
        border-color: $acolor;
//      border: 2px solid $acolor;
//      .hot-title{
//          white-space: normal;
//      }
//      .hot-time{
//          display: none;
//      }
    }
}




// 热门看点
.home-linklist{
    width: 100%;
    padding-top: 70px;
    padding-bottom: 90px;
    background-color: $sf;
    text-align: center;
    .container>div{
        display: inline-block;
        text-align: center;
        visibility: hidden;
    }
    .link-left{
        float: left;
        padding: 0 60px;
    }
    .link-right{
        float: right;
        padding: 4px 60px 0;
    }
    .link-center{
        overflow: hidden;
        text-align: center;
        p{
            margin-top: 30px;
        }
    }
    .link-btn{
        display: inline-block;
        width: 160px;
        height: 50px;
        line-height: 48px;
        color: $acolor;
        font-size: 15px;
        border-radius: 25px;
        border: solid 1px $acolor;
        cursor: pointer;
        transition: all .4s;
        &:hover{
            color: $sf;
            background-color: $acolor;
        }
    }
    p{
        color: $s3;
        font-size: 24px;
        line-height: 36px;
        margin-top: 35px;
        margin-bottom: 20px;
        .tel{
            color: $acolor;
            font-size: 36px;
        }
    }
    .tel-input{
        position: relative;
        width: 400px;
        height: 50px;
        font-size: 0;
        border: 1px solid $borcolor;
        border-radius: 25px;
        text-align: left;
        input{
            width: 290px;
            height: 100%;
            color: $s3;
            font-size: 15px;
            padding: 0 20px;
            border-radius: 25px;
            @include inputplace($sc);
        }
    }
    .submit-linkbtn{
        position: absolute;
        top: -1px;
        right: -1px;
        display: block;
        width: 110px;
        height: 50px;
        line-height: 50px;
        color: $sf;
        font-size: 15px;
        border-radius: 25px;
        background-color: $acolor;
        text-align: center;
        overflow: hidden;
        cursor: pointer;
    }
}





@keyframes fadeInUp2{
    0%{
        top: 0;
        opacity: 0;
    }
    100%{
        top: -50px;
        opacity: 1;
    }
}
.fadeInUp2{
    animation-name: fadeInUp2;
}

@keyframes marginleft{
    0%{
        margin-left: 0;
        opacity: 0;
    }
    100%{
        margin-left: 40px;
        opacity: 1;
    }
}
.marginleft{
    animation-name: marginleft;
}

@keyframes marginright{
    0%{
        margin-right: 0;
        opacity: 0;
    }
    100%{
        margin-right: 40px;
        opacity: 1;
    }
}
.marginright{
    animation-name: marginright;
}


@keyframes fadeInUp3{
    0%{
        top: 10px;
        opacity: 0;
    }
    100%{
        top: 0;
        opacity: 1;
    }
}
.fadeInUp3{
    animation-name: fadeInUp3;
}



@keyframes fadeInUp3{
    0% {
        opacity: 0;
        transform: translate3d(0, 50%, 0)
    }
    to {
        opacity: 1;
        transform: none
    }
}
.fadeInUp3{
    animation-name: fadeInUp3;
}


@keyframes flowright{
    0%{
        opacity: 0;
        width: 0;
    }
    100%{
        opacity: 1;
        width: 100%;
    }
}
.flowright{
    animation-name: flowright;
}
